package Demo2;

/**
 * @author ：陈奕安（3048279304@qq.com）
 * @date ：Created in 2025/5/6 23:35
 * @description：
 * @modified By：
 * @version:
 */
public class Test {
    public static void  drawMap(IShape iShape){
        iShape.draw();
    }
   // IShape iShape=new IShape()接口不能实例化
   public static void main(String[] args) {
       IShape iShape1=new Rect();
       IShape iShape2=new Cycle();
       drawMap(iShape1);
       drawMap(iShape2);

   }
}